from school.School import SchoolInfo

class StudentInfo:

    name: str
    address: str
    age: int
    sex: int
    school: SchoolInfo

    def __init__(self, name: str, address: str, age: int, sex: int):
        self.name = name
        self.address = address
        self.age = age
        self.sex = sex

    def entry_school(self, school: SchoolInfo):
        print(f'Student:{self} entry to School:{school}')
        self.school = school

    def __str__(self):        
        return f'Student name:{self.name} address:{self.address} age:{self.age} sex:{self.sex}'